<div class="febs-container" id="task-edit">
    <div class="febs-body  febs-open-body   layui-fluid" lay-title="排期管理">
        <form class="layui-form" action="" lay-filter="task-edit-form">
            <div class="layui-card">
                <div class="layui-card-body">

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">项目编号:</label>
                                <div class="layui-input-block-html" th:text="${schedule.projectCode}"></div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">项目名称:</label>
                                <div class="layui-input-block-html" th:text="${schedule.projectName}">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">项目经理:</label>
                                <div class="layui-input-block-html" th:text="${schedule.managers}">
                                </div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">客户单位:</label>
                                <div class="layui-input-block-html" th:text="${schedule.custName}">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">客户联系人:</label>
                                <div class="layui-input-block-html" th:text="${schedule.contact}">
                                    <!--                            <input type="text" name="contact" readonly id="contact" class="layui-input">-->
                                </div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">客户联系电话:</label>
                                <div class="layui-input-block-html" th:text="${schedule.telephone}">
                                    <!--                            <input type="text" name="telephone"  readonly id="telephone" class="layui-input">-->
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">任务编号:</label>
                                <div class="layui-input-block-html" th:text="${schedule.taskCode}"></div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label " style="width: 150px;">是否重点任务:</label>
                                <div style="margin-left: 170px;transform: translateY(7px);">
                                <span  th:if="${schedule.iskeyTask eq '1'}">是</span>
                                <span   th:unless="${schedule.iskeyTask eq '1'}">否</span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label" style="width: 150px;">模型信息:</label>
                                <div class="febs-table-full"  style="margin-left: 170px;transform: translateY(-25px);">
                                    <table lay-filter="taskModels" id="taskModels"
                                           lay-data="{id: 'taskModels'}"></table>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">所需资源:</label>
                                <div class="layui-input-block-html" th:text="${schedule.rsName}">
                                    <!--                            <input type="text" name="rsName" readonly  id="rsName" class="layui-input">-->
                                </div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">试验工时:</label>
                                <!--                        <div class="layui-input-block-htm"  th:text="${schedule.testDay}">-->
                                <div class="layui-input-block-htm">
                                    <input type="number" min="0.5" step="0.5" id="testDay" readonly name="testDay"
                                           class="layui-input"  style="display: inline-block;">
                                    <span style="display:inline;text-align: left;padding-left: 15px;">天</span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label febs-form-item-require"
                                       style="width: 150px;">计划开始日期:</label>
                                <div class="layui-input-block">
                                    <input type="text" id="planStartdate" style="width:120px;height: 38px;"
                                           name="planStartdate">
                                    <span style="display: inline-block;">
                            <select type="text" lay-filter="planStarttime" id="planStarttime" name="planStarttime">
                                <option value="">请选择</option>
                                <option value="09:00">9:00</option>
                                <option value="12:00">12:00</option>
                            </select>
                            </span>
                                </div>
                            </div>

                            <div class="layui-col-md6">
                                <label class="layui-form-label" style="width: 150px;">计划结束日期:</label>
                                <div class="layui-input-block-htm" name="planEnddate" id="planEnddate"
                                     style="transform: translateY(30%)"
                                     th:text="${#dates.format(schedule.planEnddate,'yyyy-MM-dd')} +' '+${#dates.format(schedule.planEndtime,'HH:mm')}">
                                </div>
                            </div>

                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <label class="layui-form-label" style="width: 150px;">备注：</label>
                                <textarea type="text" id="remark"   class="layui-textarea"
                                style="min-height: 50px;margin-left: 170px;transform: translateY(10px);width: 70%;"
                                          name="remark"></textarea>
                            </div>
                        </div>
                    </div>



                    <div class="febs-hide">
                        <input id="isSuccess" name="isSuccess">
                        <input name="rsCode" id="rsCode">
                    </div>


                    <div id="auditOperator" style="display: none;">
                        <label style="font-weight: bold">审核</label>
                        <div class="layui-form-item">
                            <div class="layui-row">
                                <div class="layui-col-xs12">
                                    <label class="layui-form-label febs-form-item-require" style="width:130px;">审核结果：
                                    </label>
                                    <div class="layui-input-block" style="margin-left: 160px;">
                                        <input type="radio" name="auditStatus" title="不通过" value="3">
                                        <input type="radio" name="auditStatus" title="通过" value="4" checked>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-row">
                                <div class="layui-col-xs12">
                                    <label class="layui-form-label"  style="width: 130px;">审核意见</label>
                                    <div class="layui-input-block" style="margin-left: 160px;width: 70%;">
                                        <textarea name="auditRemark" maxlength="100" class="layui-textarea"
                                          style="min-height: 50px;"          placeholder="请输入审批意见"></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div style="display: none">
                        <input name="rsDirector" id="rsDirector">
                        <input name="status" id="status">
                        <input name="taskCode">
                        <input name="managers" id="managers">
                        <input name="managerids" id="managerids">
                        <input name="isDrag"  id="isDrag">
                        <input name="taskColor"   id="taskColor">
                    </div>

                    <div class="layui-form-item febs-hide">
                        <!--                <button class="layui-btn" lay-submit="" type="button" lay-filter="task-edit-form-save"-->
                        <!--                        id="save"></button>-->
                        <button class="layui-btn" lay-submit="" type="button" lay-filter="task-edit-form-submit"
                                id="submit"></button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<script data-th-inline="javascript">
    var scheduleData = [[${schedule}]];
    var typeData = [[${type}]];
</script>
<script th:src="@{/febs/js/sypq/schedule/scheduleEdit.js(v=1)}"></script>


<script type="text/html" id="demandEnddateTpl">
    <input type="text" id="demandEnddate" class="layui-input laydate" value="{{d.demandEnddate}}"
           placeholder="请选择日期">
</script>

<script type="text/html" id="actuallyEnddateTpl">
    <input type="text" id="actuallyEnddate" class="layui-input laydate" value="{{d.actuallyEnddate}}"
           placeholder="请选择日期">
</script>


<style type="text/css">

    .layui-input-block-html {
        margin-left: 170px !important;
    }

    .layui-table-cell {
        font-size: 12px;
    }

    .layui-input-block-html{
        line-height: 38px;
        box-sizing: border-box;
    }
</style>